package com.staticextend;

public class Demo2Parent {
	public static String staticfield="父类的静态变量";
	static{
		System.out.println(staticfield);
		System.out.println("父类的静态 代码块");
	}
	public  String s2="父类的成员变量";
	{
		System.out.println(s2);
		System.out.println("父类的非静态 代码块");
	}
	
	public Demo2Parent(){
		System.out.println("父类的构造方法");
	}

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
